// 引入mongoose
const mongoose = require("mongoose");

// 初始化model
const schema=new mongoose.Schema({
    name : String, // 放映厅名字    
    status : Boolean, // 放映厅是否营业（可选）  
    cinemasId:{type:"ObjectId",ref:"cinemas"},  
    // cinemasId : String, // 放映厅所属影院的id
    projectionId:String,// 放映厅id
});

mongoose.model("projectionHall", schema, "projectionHall")